@import '../../style/reset.scss';

$main-padding: 120px;

.main {
  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 $main-padding;
    border-bottom: 1px solid #ccc;
    height: 60px;
    line-height: 60px;

    .name {
      font-size: 30px;

      .posi {
        font-size: 16px;
        color: #888;
      }
    }

    .info {
      vertical-align: center;

      .tel-box {
        margin: 0 5px;
        color: #888;
      }
    }
  }

  .content {
    box-sizing: border-box;
    max-width: 1000px;
    padding: 0 20px 20px;
    // border-left: 1px solid #ccc;
    // border-right: 1px solid #ccc;
    margin: 0 auto;

    .person-info {
      h2 {
        font-size: 20px;
        color: #888;
        padding: 30px 0 40px;
        text-align: center;
      }

      .info {
        display: flex;
        justify-content: space-around;

        p {
          color: #333;
          width: 33.3%;
          margin-bottom: 20px;
          padding-left: 15px;

          .txt {
            color: #888;
          }
        }
      }
    }

    .skill-info {
      h2 {
        font-size: 20px;
        color: #888;
        padding: 30px 0 40px;
        text-align: center;
      }

      .info {
        width: 100%;
        overflow: hidden;
        p {
          position: relative;
          box-sizing: border-box;

          line-height: 45px;
          padding-left: 20px;
          margin-bottom: 10px;
          border-radius: 0 10px 10px 0;


          &::before {
            position: absolute;
            top: 0;
            left: 0;
            content: '';
            width: 3px;
            height: 100%;
          }

          &:nth-of-type(1) {
            color: #2a7da9;
            border-color: #3498db;
            background-color: #d6efff;

            &::before {
              background: #3498db;
            }
          }

          &:nth-of-type(2) {
            color: #2a7da9;
            border-color: #3498db;
            background-color: #d6efff;

            &::before {
              background: #3498db;
            }
          }

          &:nth-of-type(3) {
            color: #6e9c0f;
            border-color: #80bd01;
            background-color: #eaf6d0;

            &::before {
              background: #80bd01;
            }
          }

          &:nth-of-type(4) {
            color: #6e9c0f;
            border-color: #80bd01;
            background-color: #eaf6d0;

            &::before {
              background: #80bd01;
            }
          }

          &:nth-of-type(5) {
            color: #6e9c0f;
            border-color: #80bd01;
            background-color: #eaf6d0;

            &::before {
              background: #80bd01;
            }
          }

          &:nth-of-type(6) {
            color: #ff742a;
            border-color: #fdbc40;
            background-color: #fff6dd;

            &::before {
              background: #fdbc40;
            }
          }

        }
      }
    }

    .company-info {

      overflow: hidden;

      h2 {
        font-size: 20px;
        color: #888;
        padding: 30px 0 40px;
        text-align: center;
      }

      .info {
        position: relative;
        padding: 20px 0;
        margin: 0 auto;

        &::before {
          position: absolute;
          content: '';
          top: 0;
          left: 3px;
          width: 3px;
          height: 100%;
          background: #ccc;
        }

        .time {
          position: relative;
          padding-left: 20px;

          &::before {
            position: absolute;
            content: '';
            top: 2px;
            left: 0;
            width: 10px;
            height: 10px;
            border-radius: 100%;
            background: #3498db;
          }
        }

        .cp {
          display: flex;
          align-items: center;
          padding: 20px;

          .logo {
            width: 160px;

            img {
              width: 100%;
            }
          }

          .des {
            margin-left: 20px;

            .name {
              font-size: 20px;

              .job-title {
                font-size: 14px;
                color: #888;

                &::before {
                  content: "\2014\2014";
                  padding: 0 4px;
                }

              }
            }

            .msg {
              color: #333;
              line-height: 25px;
            }
          }
        }
      }
    }

    .project-info {
      h2 {
        font-size: 20px;
        color: #888;
        padding: 30px 0 40px;
        text-align: center;
      }

      .info {
        padding-bottom: 20px;
        border-bottom: 2px dashed #ccc;

        h4 {
          font-size: 20px;
          line-height: 2.5;
        }

        .tag-box {
          display: flex;
          justify-content: space-between;
          margin: 10px 0 15px;

          .tag {
            width: 30px;
            height: 20px;
            padding: 2px 3px;
            border-radius: 5px;
            font-weight: normal;
          }

          .nodejs {
            color: #fff;
            background: #80bd01;
          }

          .time {
            color: #888;
            font-size: 14px;
          }
        }
      }
    }

  }

  .footer {
    width: 100%;
    height: 60px;
    line-height: 60px;
    border-top: 1px solid #ccc;
    text-align: center;
    a {
      color: #3498db;
      margin: 0 2px;
    }
  }

  .iconfont {
    font-size: 20px;
    color: #888;
    margin-right: 2px;
    vertical-align: middle;
  }
}